package com.msh.platform.elm.dao;

import com.msh.platform.elm.entity.DevTest;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface DevTestRepository extends JpaRepository<DevTest,Integer> {
    DevTest findByName(String name);
    void deleteByName(String name);
    
    @Query(value="SELECT * FROM  dev_test WHERE name = ?1 AND uid = ?2", nativeQuery = true)
    List<DevTest> findName(String name,String uid);
}
